.PHONY:clean
CC = gcc
RM = rm
OBJ = test
OBJS = demo.o xbox_gamepad_linux_interface.o

${OBJ}:${OBJS}
	@${CC} -o $@  $^
demo.o:demo.c
	@${CC} -c $^ -o $@
xbox_gamepad_linux_interface.o:xbox_gamepad_linux_interface.c
	@${CC} -c $^ -o $@

clean:
	@${RM} ${OBJS} ${OBJ}